<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{foreach from=$pages item=page}   
<url>
<loc>{$prefix}{$page.path}</loc>
<changefreq>{$page.change_freq}</changefreq>
{if $page.last_modified}<lastmod>{$page.last_modified}</lastmod>
{/if}
{if $page.weight}<priority>{$page.weight}</priority>
{/if}
</url>
{/foreach}
</urlset>